import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/enroll',
      name: 'enroll',
      component:()=> import('../views/Member/EnrollView.vue')
    },
    {
      path: '/login',
      name: 'login',
      component:()=>import('../views/Member/LoginView.vue')
    },
    {
      path: '/addmeber',
      name: 'addmeber',
      component:()=>import('../views/Member/AddMemberView.vue')
    },
    {
      path: '/showmeber',
      name: 'showmeber',
      component:()=>import('../views/Member/ShowMemberView.vue')
    },
    {
      path: '/upmember/:id',
      name: 'upmember',
      component:()=>import('../views/Member/UpMemberView.vue')
    },
  {
      path: '/EditMember/:id',
      name: 'EditMember',
      component:()=>import('../views/Member/EditMemberView.vue')
    },





    {
      path: '/AddMemberRankView',
      name: 'AddMemberRankView',
      component:()=>import('../views/MemberInterests/AddMemberRankView.vue')
    },
    {
      path: '/ShowMemberRankView',
      name: 'ShowMemberRankView',
      component:()=>import('../views/MemberInterests/ShowMemberRankView.vue')
    },
      {
      path: '/UpdateMemberRankView/:id',
      name: 'UpdateMemberRankView',
      component:()=>import('../views/MemberInterests/UpdateMemberRankView.vue')
    },




          {
      path: '/AddMemberRightsView',
      name: 'AddMemberRightsView',
      component:()=>import('../views/MemberInterests/AddMemberRightsView.vue')
    },
             {
      path: '/ShowMemberRightsView',
      name: 'ShowMemberRightsView',
      component:()=>import('../views/MemberInterests/ShowMemberRightsView.vue')
    },




    {
      path: '/AddRankRightsView',
      name: 'AddRankRightsView',
      component:()=>import('../views/MemberInterests/AddRankRightsView.vue')
    },
    {
      path: '/UpMemberRightsView',
      name: 'UpMemberRightsView',
      component:()=>import('../views/MemberInterests/UpMemberRightsView.vue')
    },



       {
      path: '/AddShopView',
      name: 'AddShopView',
      component:()=>import('../views/Shop/AddShopView.vue')
    },
         {
      path: '/ShowShopView',
      name: 'ShowShopView',
      component:()=>import('../views/Shop/ShowShopView.vue')
    },
             {
      path: '/UpShopView/:shopId',
      name: 'UpShopView',
      component:()=>import('../views/Shop/UpShopView.vue')
    },




          {
      path: '/AddShopStatsView',
      name: 'AddShopStatsView',
      component:()=>import('../views/Shop/AddShopStatsView.vue')
    },
       
          {
      path: '/ShowShopStatsView',
      name: 'ShowShopStatsView',
      component:()=>import('../views/Shop/ShowShopStatsView.vue')
    },   
          {
      path: '/UpShopStatsView/:id',
      name: 'UpShopStatsView',
      component:()=>import('../views/Shop/UpShopStatsView.vue')
    }, 
    


    {
      path: '/AddElectronicBillView',
      name: 'AddElectronicBillView',
      component:()=>import('../views/ElectronicBill/AddElectronicBillView.vue')
    },
      {
      path: '/ShowCommBillView',
      name: 'ShowCommBillView',
      component:()=>import('../views/ElectronicBill/ShowCommBillView.vue')
    },
          {
      path: '/ShowCertronicBillView',
      name: 'ShowCertronicBillView',
      component:()=>import('../views/ElectronicBill/ShowCertronicBillView.vue')
    },


    
              {
      path: '/AddRoomTypeView',
      name: 'AddRoomTypeView',
      component:()=>import('../views/Room/AddRoomTypeView.vue')
    },
                   {
      path: '/ShowRoomTypeView',
      name: 'ShowRoomTypeView',
      component:()=>import('../views/Room/ShowRoomTypeView.vue')
    },  
                    {
      path: '/UpRoomTypeView/:id',
      name: 'UpRoomTypeView',
      component:()=>import('../views/Room/UpRoomTypeView.vue')
    },  
                      {
      path: '/AddRoomNumberView',
      name: 'AddRoomNumberView',
      component:()=>import('../views/Room/AddRoomNumberView.vue')
    }, 
 {
      path: '/ShowRoomNumberView',
      name: 'ShowRoomNumberView',
      component:()=>import('../views/Room/ShowRoomNumberView.vue')
    },                  
        
     {
      path: '/UpRoomNumberView/:id',
      name: 'UpRoomNumberView',
      component:()=>import('../views/Room/UpRoomNumberView.vue')
    },   
  ]
})

export default router

